#ifndef __BOOT_H__
#define __BOOT_H__

#include "stm32f10x.h"                  // Device header
#include "string.h"
#include "main.h"
#include "AT24C02.h"
#include "Delay.h"
#include "FMC.h"
#include "W25Q64.h"
#include "my_usart1.h"

typedef void (*load_a)(void);

void BootLoader_Brance(void);
__asm void MSR_SP(uint32_t addr);
void Load_A(uint32_t addr);
uint8_t BootLoader_Enter(uint8_t timerout);
void BootLoader_Info(void);
void BootLoader_Info(void);
void BootLoader_Event(uint8_t* data,uint16_t datalen);
uint16_t Xmodem_CRC16(uint8_t* data ,uint16_t datalen);


#endif

